package com.jn.erp.web.api.interaction.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.jn.erp.web.api.common.entity.TLabel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author wyp
 * @since 2024-09-20
 */
@Data
  @EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
    public class TEvaluate implements Serializable {

    private static final long serialVersionUID=1L;

      /**
     * 主键
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      /**
     * 创建者所属组织ID
     */
      private Long orgId;

      /**
     * 评价目标id
     */
      private Long tId;

      /**
       * 课次编号
       */
      private String orderNo;

      /**
     * 评价类型1学生评价2老师评价
     */
      private Integer type;

      /**
     * 姓名
     */
      private String name;

      /**
     * 状态是否评论0是1否
     */
      private Integer state;


    /**
     * 状态(学生老师)
     */
    private Integer tState;


      /**
     * 备注
     */
      private String remark;

      /**
     * 模版id
     */
      private Long templateId;

      /**
     * 资源链接
     */
      private String link;

      /**
     * 音频
     */
      private String audio;

      /**
     * 视频
     */
      private String video;

      /**
     * 图片
     */
      private String pic;

      /**
       * 图片
       */
      private Long evaluator;


      /**
     * 创建时间
     */
      private LocalDateTime createDate;

      /**
     * 创建人
     */
      private String createUser;

      /**
     * 修改时间
     */
      private LocalDateTime updateDate;

      /**
     * 修改人
     */
      private String updateUser;

      /**
     * 是否删除 0否 1是
     */
      private String isDelete;


      /**
       * 得分
       */
      @TableField(exist = false)
      private List<TEvaluateScore> tEvaluateScores;



      /**
       * 评分项
       */
      @TableField(exist = false)
      private List<TLabel> tLabelList;

  public TEvaluate(Long orgId, Long tId, String orderNo, Integer type, String name, Integer state, Integer tState, String remark, Long templateId, String link, String audio, String video, String pic, LocalDateTime createDate, String createUser, LocalDateTime updateDate, String updateUser, String isDelete) {
    this.orgId = orgId;
    this.tId = tId;
    this.orderNo = orderNo;
    this.type = type;
    this.name = name;
    this.state = state;
    this.tState = tState;
    this.remark = remark;
    this.templateId = templateId;
    this.link = link;
    this.audio = audio;
    this.video = video;
    this.pic = pic;
    this.createDate = createDate;
    this.createUser = createUser;
    this.updateDate = updateDate;
    this.updateUser = updateUser;
    this.isDelete = isDelete;
  }
}
